package org.szy.core.event.monitor.event;

import org.noear.solon.core.handle.Context;
import org.szy.core.common.enums.UserTypeEnum;

/**
 * 定义在线用户的事件模型
 *
 * @author 孙志阳
 * @date 2023-06-30
 * @since 1.0.0
 **/
public class UserOnlineEvent {

    private Long userId;

    private String account;

    private String nickName;

    private UserTypeEnum typeEnum;

    private Context ctx;

    public Long getUserId() {
        return userId;
    }

    public void setUserId(Long userId) {
        this.userId = userId;
    }

    public String getAccount() {
        return account;
    }

    public void setAccount(String account) {
        this.account = account;
    }

    public String getNickName() {
        return nickName;
    }

    public void setNickName(String nickName) {
        this.nickName = nickName;
    }

    public UserTypeEnum getTypeEnum() {
        return typeEnum;
    }

    public void setTypeEnum(UserTypeEnum typeEnum) {
        this.typeEnum = typeEnum;
    }

    public Context getCtx() {
        return ctx;
    }

    public void setCtx(Context ctx) {
        this.ctx = ctx;
    }
}
